<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="scaffolded-by" content="https://github.com/dart-lang/sdk">
    <title>sqlite on the web</title>
    <script defer src="main.dart.js"></script>
</head>

<body>

<h1>sqlite3 web demo</h1>

<main>
This page can be used to launch a sqlite3 database on the web in two different configurations:

<ul>
  <li>With an IndexedDb-based storage implementation (doesn't require web workers): <button id="start-idb">Start demo!</button></li>
  <li>With an Origin-Private FileSystem (OPFS)-based storage implementation. Note that this requires two workers and a special header
      that is not available with <code>build_runner serve</code>, but it will work when launching this website with <code>dart run tool/example_server.dart</code> <button id="start-opfs">Start demo!</button>
  </li>
</ul>

After launching the example, you can check the console and the code in <code>main.dart</code> (or <code>worker.dart</code> for the OPFS example)
for details.
</main>


</body>
</html>
